export default {
    title: {
        text: '近一年课程播放排行榜',
        textStyle: {
            color: '#bcdcff'
        },
        top:20,
        left:20
    },
    grid: {
        bottom: 35,
        left: 'center',
        width:'75%',
        height:'75%',
    },
    dataset: {
        source: [
            ['score', 'amount', 'product'],
            [89.3, 58212, 'Match'],
            [57.1, 78254, 'MilTa'],
            [74.4, 41032, 'Cheese'],
            [50.1, 12755, 'Cheese'],
            [89.7, 20145, 'Match'],
            [68.1, 79146, 'Tea'],
            [19.6, 91852, 'Orang'],
            [10.6, 101852, 'Lemo'],
            [32.7, 20112, 'Walnu']
        ]
    },
    xAxis: {
        name: 'amount'
    },
    yAxis: {
        type: 'category'
    },
    series: [{
        type: 'bar',
        encode: {
            // Map the "amount" column to X axis.
            x: 'amount',
            // Map the "product" column to Y axis
            y: 'product'
        },
        itemStyle: {
            borderRadius: [0, 50, 50, 0]
        },
    }]
}